package com.crm.dao.mapper.customMapper.customerManagerCustomMapper;

import com.crm.model.qo.customerManager.CustomerReturnQO;
import com.crm.model.vo.customerManager.CustomerReturnVO;
import com.crm.model.vo.customerManager.ModificationRecordVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ Author ：baijian
 * @ Date   ：2021/3/29 09:03
 */
public interface CustomerReturnCustomMapper {

    /**
     * 根据客户id查询公司修改记录
     * @param sortOrder 分组类型
     * @param customerId 客户id
     * @return
     */
    List<CustomerReturnVO> customerReturnList(@Param("sortOrder")String sortOrder, @Param("customerId")  String customerId);

    /**
     * 系统收回客户记录
     * @param moveCustomerQO
     * @param order
     * @return
     */
    List<CustomerReturnVO> getFollowPlanListByDate(@Param("qo") CustomerReturnQO moveCustomerQO, @Param("order") StringBuilder order);

    /**
     * 修改回退状态
     * @param customerReturnId
     */
    void backCustomerReturn(@Param("customerReturnId") String customerReturnId);
}
